Passed
Pull Request — master (#223)
by Daniel
01:31
created

MainClass   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 15
dl 0
loc 29
rs 10
c 0
b 0
f 0
1
import "animate.css";
2
3
import checkValidText from "./classes/ValidText/classValidText";
4
import sendForm from "./classes/ProcessInputForm/classProcessInputForm";
5
6
const initialize = (): void => {
7
  const textInput = window.document.getElementById(
8
    "bilinformasjon"
9
  ) as HTMLInputElement;
10
  const textForm = window.document.getElementById("regnrform") as HTMLFormElement;
11
12
  if (textInput && textForm) {
13
    console.log("textInput:", textInput);
14
15
    textInput.addEventListener("input", checkValidText);
16
    textForm.addEventListener("submit",  sendForm);
17
  }
18
};
19
20
initialize();
21